package com.example.tobebigfe.web

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.PreferenceFragmentCompat
import com.example.tobebigfe.R

class DevSettingsActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_dev_settings)
        title = "开发设置"
        supportFragmentManager
            .beginTransaction()
            .add(R.id.settings_container, DevSettingsFragment())
            .commit()
    }
}

class DevSettingsFragment : PreferenceFragmentCompat() {
    override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
        setPreferencesFromResource(R.xml.dev_preferences, rootKey)
    }
}